<html lang="en" style="font-size: 100px;"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="icon" href="/favicon.ico"><title>龙珠</title><style>body {
    background: #f2f2f2;
}
@media screen and (min-width: 767px) {
    #app {
        width: 540px;
        margin: 0 auto;
        min-height: 100vh;
        box-sizing: border-box;
        border: 1px solid #999;
        /* overflow-y: hidden; */
    }
    .van-popup--top {
        width: 540px;
        margin: 0 auto;
    }
}</style>
    <link href="../css/app.2150f8cc.css" rel="stylesheet">
    <link href="../css/chunk-vendors.e9f6096e.css" rel="stylesheet">
    <link href="../css/chunk-43155bdd.7506223a.css" rel="stylesheet">
    <link href="../css/chunk-fde07e7a.adc0509a.css" rel="stylesheet">
    <link href="../css/chunk-57d8499b.96222562.css" rel="stylesheet">
    <link href="../css/chunk-38d9c4e3.72558616.css" rel="stylesheet">
    <link href="../css/chunk-6de0daa4.5391e009.css" rel="stylesheet">
    <link href="../css/chunk-03d19c5b.da3b4d7d.css" rel="stylesheet">
    <link href="../css/chunk-ae7bdc24.38e0efd9.css" rel="stylesheet">
    <link href="../css/chunk-41206b58.2fe3c40b.css" rel="stylesheet">
    <link href="../css/chunk-6a2440bf.15a728eb.css" rel="stylesheet">
    <link href="../css/chunk-02960128.d8e4678b.css" rel="stylesheet">
    <link href="../css/chunk-9fea3c5c.531c8116.css" rel="stylesheet">
    <link href="../css/chunk-24229c8f.122b5dbc.css" rel="stylesheet">
    <link href="../css/chunk-58705b64.1442bd8d.css" rel="stylesheet">
    <link href="../css/chunk-5ea3ec15.30d377cf.css" rel="stylesheet">
    <link href="../css/chunk-dee820da.cfa2c36a.css" rel="stylesheet">
    <link href="../css/chunk-4dbebf52.c3310d55.css" rel="stylesheet">
    <link href="../css/chunk-16db521b.9f656bd8.css" rel="stylesheet">
    <link href="../layer/skin/layer.css" rel="stylesheet">
    <style type="text/css">
        .file-uploads{overflow:hidden;position:relative;text-align:center;display:inline-block
        }
        .file-uploads.file-uploads-html4 input,.file-uploads.file-uploads-html5 label{background:#fff;opacity:0;font-size:20em;z-index:1;top:0;left:0;right:0;bottom:0;position:absolute;width:100%;height:100%
        }
        .file-uploads.file-uploads-html4 label,.file-uploads.file-uploads-html5 input{background:rgba(255,255,255,0);overflow:hidden;position:fixed;width:1px;height:1px;z-index:-1;opacity:0
        }
        td{text-align: center;color:#000;    font-size: 15px;}
        #zt{display:none;}
    </style>
</head>
<body class=""><div id="app"><div  class="home"><!---->


    <div data-v-728c631b=""  class="carry-order"><header data-v-728c631b="">首页</header><section data-v-728c631b=""><div data-v-728c631b="" class="van-tabs van-tabs--line">

        <div class="van-tabs__wrap van-hairline--top-bottom">
            <div role="tablist" class="van-tabs__nav van-tabs__nav--line">
                <div role="tab"  class="van-tab " id="itemmobileb"><span class="van-ellipsis">手册</span></div>
                <div role="tab" aria-selected="true" class="van-tab van-tab--active" s><span class="van-ellipsis">抢单</span></div>
                <div role="tab" class="van-tab" id="itemmobilec"><span class="van-ellipsis">进行中</span></div>
                <div role="tab" class="van-tab" id="itemmobiled"><span class="van-ellipsis">客服</span></div>
                <div class="van-tabs__line" style="width: 46.5px; transform: translateX(46.5px) translateX(150%); transition-duration: 0.3s;"></div></div></div>

        <div class="van-tabs__content"><div data-v-728c631b="" role="tabpanel" class="van-tab__pane" style=""></div><div data-v-728c631b="" role="tabpanel" class="van-tab__pane"  id="item1mobile">

            <div data-v-0a76cd72="" data-v-728c631b=""><div data-v-0a76cd72="" class="account-info"><div data-v-0a76cd72="">可抢额度: <span id="max_pipeinone">0.00</span>元</div><div data-v-0a76cd72="">账户余额: <span id="money">0.00</span>元</div></div><div data-v-4deec435="" data-v-0a76cd72="" style="margin-bottom: 12px;"></div>
                <button data-v-0a76cd72="" class="select-code van-button van-button--default van-button--normal" onclick="optionqd()">
    <span data-v-0a76cd72="" class="van-button__text" id="option">
<!--    <?php  if($ulist['zdopention'] >0){ ?>-->
        <!--  停止自动抢单<?php }else{?>开启自动抢单<?php } ?>-->
        开启自动抢单
  </span></button><!---->
                <section data-v-2aa7943a="" class="service-info"><div data-v-2aa7943a="" class="MB20 fail-color" style="margin: 0 .1rem;">
                    <table style="width: 100%">
                        <tr>
                            <th>类型</th>
                            <th>金额</th>
                            <th>操作</th>
                        </tr>

                        <tbody id="tpl">

                        </tbody>

                    </table>

                </div></section>

            </div>

        </div>

            <div data-v-728c631b="" role="tabpanel" class="van-tab__pane" style="display: none;" id="item3mobile">
                <!--<foreach name='slist' item='info'>
                                                <div data-v-7b3d257d class="detail-info">

                                                <div class="van-swipe-cell__wrapper" style="transform: translate3d(0px, 0px, 0px); transition-duration: 0.6s;">
                                                <div data-v-9d393b54="" class="flexh flex-between MR10">

                                                <div data-v-9d393b54="" class="flex1">
                                                <div data-v-9d393b54="" class="benefit">类型

                                <span data-v-9d393b54="" class="warn-color font-14"><?php   if ($info['class'] == 1) { ?> 微信<?php  }elseif($info['class'] == 2){  ?>支付宝<?php  }elseif($info['class'] == 3){  ?>商家码<?php } ?> </span>
                            </div>
                                <div data-v-9d393b54="" class="MT03">
                                充值单号: <span id="pay_sn">{$info.pay_sn}</span>
                              </div>
                              <div data-v-9d393b54="" class="MT03" style="color: rgb(153, 153, 153);">时间:<?=date('Y-m-d H:i:s',$info['pipeitime'])?></div></div>
                              <div data-v-9d393b54="" style="text-align: right;">
                              <div data-v-9d393b54="" class="benefit"><span data-v-9d393b54="" class="font-14 fail-color" style="font-size: .20rem;">
                                  {$info.pay_money}元
                                 </span></div>
                                  <div data-v-9d393b54="" class="green font-14" style="margin-top: 0.26rem;" onclick="location='<?php echo U('Index/qiangdanxq',array('id'=>$info['id']));?>'">查看详情</div></div></div></div></div>
                                            </foreach>	-->

            </div><!---->


            <div data-v-728c631b="" role="tabpanel" class="van-tab__pane" style="display: none;" id="item4mobile">
                <div style="    margin: 5% 10%;font-size: 30px;">
                    <span id="qd_kf"></span>
                    <img data-v-41371306="" src="" alt="" style="width: 80%;" id="imgkf"></div></div></div></div>

        <div data-v-e46bf050="" data-v-728c631b="" class="guide-ruler" carryorderlist="" id="item2mobile" style="display: none;"><!---->
            <!--<foreach name = 'list' item='v'>
            <div data-v-e46bf050="" class="{$v.from}">
              <a href="<?php echo U('Index/news',array('id'=>$v['id']));?>" style="color: #fff;">{$v.title}</a>
            </div>
              </foreach>-->

            <!----><!----><!----></div></section></div>
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <script type="text/javascript" src="../layer/layer.js"></script>
    <script type="text/javascript" src="../js/index.js" ></script>
    <script type="text/javascript" src="../js/tools.js" ></script>
    <script type="text/javascript">
        function deviceReady(){
            initData();

        }
        function initData(){
            var post_data = {};
            var success = function(data){
                $('#imgkf').attr('src',httpUrl+data.imgkf);
                $('#max_pipeinone').html(data.max_pipeinone);
                $('#money').html(data.ulist.money);
                $('#qd_kf').html(data.clist.qd_kf);
                item2mobile(data.list);
                if(parseInt(data.ulist.zdopention) == 1){
                    $("#zt").text(1);
                    $("#option").text('关闭自动抢单');
                    sds();
                }else{
                    $("#zt").text(0);
                    $("#option").text('开启自动抢单');
                }
                init();
            }
            var error = function(data){}
            beginAsyncAjax('Index/indexnew',post_data,'POST',success,error)
        }
        function item2mobile(list) {
            for (var i in list){
                var url = 'news.html?id='+list[i].id;
                var str = '<div data-v-e46bf050="" class="'+list[i].from+'">\n' +
                    '    <a href="JavaScript:void(0);" onclick="gotoDetail('+url+')" style="color: #fff;">'+list[i].title+'</a>\n' +
                    '  </div>';
                $('#item2mobile').append(str);
            }
        }
        function init() {
            zd();
            $("#itemmobilea").click(function(){
                $("#item1mobile").show();
                $("#item2mobile").hide();
                $("#item3mobile").hide();
                $("#item4mobile").hide();
                $("#itemmobilea").addClass('van-tab--active');
                $('.van-tabs__line').css("transform","translateX(41px) translateX(150%)");
                $("#itemmobileb").removeClass('van-tab--active');
                $("#itemmobilec").removeClass('van-tab--active');
                $("#itemmobiled").removeClass('van-tab--active');

            });
            $("#itemmobileb").click(function(){
                $("#item1mobile").hide();
                $("#item2mobile").show();
                $("#item3mobile").hide();
                $("#item4mobile").hide();
                $("#itemmobileb").addClass('van-tab--active');
                $('.van-tabs__line').css("transform","translateX(41px) translateX(-50%)");
                $("#itemmobilea").removeClass('van-tab--active');
                $("#itemmobilec").removeClass('van-tab--active');
                $("#itemmobiled").removeClass('van-tab--active');

            });
            $("#itemmobilec").click(function(){

                $("#item1mobile").hide();
                $("#item2mobile").hide();
                $("#item3mobile").show();
                $("#item4mobile").hide();
                $("#itemmobilec").addClass('van-tab--active');
                $('.van-tabs__line').css("transform","translateX(41px) translateX(350%)");
                $("#itemmobileb").removeClass('van-tab--active');
                $("#itemmobilea").removeClass('van-tab--active');
                $("#itemmobiled").removeClass('van-tab--active');
                //'http://www.main.com:8082/api/Index/loading'
                var success = function(str) {
                    $("#item3mobile").empty();
                    $.each(str, function(i, item){

                        html='<div data-v-7b3d257d class="detail-info"><div class="van-swipe-cell__wrapper" style="transform: translate3d(0px, 0px, 0px);transition-duration: 0.6s;"><div data-v-9d393b54="" class="flexh flex-between MR10"><div data-v-9d393b54="" class="flex1"><div data-v-9d393b54="" class="benefit">类型 <span data-v-9d393b54="" class="warn-color font-14">'+item.t+'</span></div>';
                        html+= '<div data-v-9d393b54="" class="MT03">充值单号: '+item.pay_sn+'</div><div data-v-9d393b54="" class="MT03" style="color: rgb(153, 153, 153);">时间:'+item.add+'</div></div><div data-v-9d393b54="" style="text-align: right;"><div data-v-9d393b54="" class="benefit"><span data-v-9d393b54="" class="font-14 fail-color" style="font-size: .20rem;">'+item.pay_money+' 元</span></div>';
                        html+= '<div data-v-9d393b54="" class="green font-14" style="margin-top: 0.26rem;" onclick="start_sdd('+item.id+')">查看详情</div></div></div></div></div>';

                        $("#item3mobile").append(html);
                    });
                }
                var error = function(){

                }
                beginAsyncAjax('Index/loading',{},'POST',success,error);
                // $.ajax({
                //     type: 'POST',
                //     url: ,
                //     data: '',
                //     dataType: 'json',
                //
                // });

            });
            $("#itemmobiled").click(function(){
                $("#item1mobile").hide();
                $("#item2mobile").hide();
                $("#item3mobile").hide();
                $("#item4mobile").show();
                $("#itemmobiled").addClass('van-tab--active');
                $('.van-tabs__line').css("transform","translateX(41px) translateX(550%)");
                $("#itemmobileb").removeClass('van-tab--active');
                $("#itemmobilea").removeClass('van-tab--active');
                $("#itemmobilec").removeClass('van-tab--active');

            });
        }
        function zd() {
            var r = window.setInterval(function() {
                    if($("#zt").text()== 1){
                        sds();
                    }
                    if ($("#zt").text()== 1) {
                        zdqd();
                    }
                },
                5000);
        }
        function sds() {
            var post_data = {};
            var success = function(str) {
                $("#tpl").empty();
                $.each(str.slist, function(i, item){

                    html='<tr style="line-height: 1.5em;"><td>'+item.t+'</td>';
                    html+= '<td >'+item.price+'</td>';
                    html+= '<td><button type="button" class="mui-btn mui-btn-danger zidong" id="autopipei" onclick="start_sd('+item.id+','+item.class+')" style="background: #3cad6d;width: 80%;border-radius: .1rem;color: #fff;border: 0;">抢单</button></td></tr>';

                    $("#tpl").append(html);
                });
            }
            var error = function(data){}
            beginAsyncAjax('Index/sds',post_data,'POST',success,error)
        }
        function zdqd(){
            var qdclass = $('#qdclass').val();
            var qdclass2 = $('#qdclass2').val();
            var qdclass3 = $('#qdclass3').val();
            var post_data = {'qdclass' : qdclass,'qdclass2':qdclass2,'qdclass3':qdclass3};
            var success = function(data){
                if(data.status==1){
                    showSound();
                    msg_alert(data.msg);  //,data.url);
                    // $("#zt").text(0);
                    setTimeout(function (args) {
                        gotoDetail('shoudan.html');
                    }, 5000);
                }
            }
            var error = function(data){}
            beginAsyncAjax('Index/zidong',post_data,'POST',success,error)
        }
        function showSound(audioSrc='../mp3/dd.mp3') {
            /**因为音效元素是追加的，所以每次生成之前，将原来的删除掉*/
            $("#hint").remove();
            /**创建audio标签的Jquery对象，然后追加到body进行播放即可*/
            let audioJQ = $("<audio src='" + audioSrc + "' autoplay id='hint'/>");
            audioJQ.appendTo("body");
        }


        function optionqd(){
            $("#option").attr('disabled',true);
            var post_data = {};
            var success = function(data){
                if(data.status == 1){
                    layer.msg(data.msgs);  //,data.url);
                    $("#option").attr('disabled',false);
                    $("#option").text(data.msg);

                    if(data.zr == 1){
                        $("#zt").text(1);
                    } else {
                        $("#zt").text(0);
                    }
                }
            }
            var error = function(data){}
            beginAsyncAjax('Index/qdoption',post_data,'POST',success,error)
        }
        function start_sdd(id){
            window.location.href="/Index/qiangdanxq/id/"+id;
        }
        function start_sd(id,qdclass){
            var post_data = {'id' : id,qdclass:qdclass};
            var success = function(data){
                if(data.status==1){
                    msg_alert(data.msg);  //,data.url);
                    setTimeout(function (args) {
                        window.location.href = "{:U('Index/shoudan')}";
                    }, 2000);
                }else{
                    msg_alert(data.msg);
                }
            }
            var error = function(data){}
            beginAsyncAjax('Index/sdq',post_data,'POST',success,error)
        }
    </script>
    <span id="zt">0</span>
    <div data-v-41371306="" class="van-hairline--top-bottom van-tabbar van-tabbar--fixed" style="z-index: 1;">
        <div data-v-41371306="" class="van-tabbar-item">
            <div class="van-tabbar-item__icon"><!----></div><a href="javascript:void(0)" onclick="gotoDetail('index.html')"><div class="van-tabbar-item__text">
            <img data-v-41371306="" src="../img/home.png" alt="" class="home-icons"></div></a></div><div data-v-41371306="" class="van-tabbar-item"><div class="van-tabbar-item__icon"><!----></div>
        <a href="javascript:void(0)" onclick="gotoDetail('chongzhi.html')"><div class="van-tabbar-item__text"><img data-v-41371306="" src="/img/chongzhi1.png" alt="" class="home-icons"></div></a>
    </div><div data-v-41371306="" class="van-tabbar-item"><div class="van-tabbar-item__icon"><!----></div>
        <a href="javascript:void(0)" onclick="gotoDetail('tixian.html')">
            <div class="van-tabbar-item__text"><img data-v-41371306="" src="/img/tixian1.png" alt="" class="home-icons"></div></a></div><div data-v-41371306="" class="van-tabbar-item van-tabbar-item--active"><div class="van-tabbar-item__icon"><!----></div>
        <a href="javascript:void(0)" onclick="gotoDetail('user.html')">
            <div class="van-tabbar-item__text"><img data-v-41371306="" src="/img/center1.png" alt="" class="home-icons"></div></a></div>
    </div>
</div></div></body></html>